/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cassandrawindow;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;


public class UpdateFraudClick {

    public static void handleData() throws InterruptedException, ClassNotFoundException, InstantiationException, IllegalAccessException{
        MysqlDataManager mysql = new MysqlDataManager();
        List listBanners = new ArrayList();
        listBanners = mysql.getValidBanner();
        //String date = "2012-07-07";
        String currentDate = TimeUtil.getCurrentTimeInString();//2012-07-24
        Iterator it = listBanners.iterator();
        while(it.hasNext())
        {
            String value = (String) it.next();
            mysql.updateFraudClick(Integer.valueOf(value), currentDate);
        }
    
    }

}
